package cn.com.open.itembank.logic.questiontype;

import cn.com.open.itembank.dto.QuestionImportModel;
import cn.com.open.itembank.dto.QuestionModel;

/**
 * Created by lucky on 2017/12/19.
 */
public class UploadItem extends QuestionTypeBase {
    /**
     * Instantiates a new Upload item.
     *
     * @param model the model
     */
    public UploadItem(QuestionImportModel model) {
        super(model);
    }

    //region 校验是否为空

    /**
     * 校验是否为空.
     *
     * @return the boolean
     */
    @Override
    protected boolean checkEmptySelf() {
        return true;
    }
    //endregion

    //region 校验答案界限

    /**
     * 校验答案界限.
     *
     * @return the boolean
     */
    @Override
    protected boolean checkAnswerLimit() {
        return true;
    }
    //endregion

    //region 获取保存模型

    /**
     * 获取保存模型.
     *
     * @return the input question model
     */
    @Override
    public QuestionModel getSaveModel() {
        QuestionModel model = super.getSaveModel();
        model.setI32(1);
        return model;
    }
    //endregion
}
